/*
 * @Author: wangjj3
 * @Date: 2022-10-18 11:35:33
 * @Description: signthequote content
 */

import DefaultParam from '../../common/DefaultParam';

class SignthequoteParam extends DefaultParam {
  constructor(data, files = [], isSaveFile = true) {
    super(data, files, isSaveFile);
  }

  /**
   * 保存数据格式化
   * @param {*} data
   * @returns
   */
  setData() {
    const {
      // 联系人
      contract,
      // 联系电话
      contractPhone,
      // 会签部门
      countersign,
    } = this.data;
    return {
      ...this.getDefaultParam(),
      // 联系人
      contactser: contract,
      // 联系电话
      telphone: contractPhone,
      // 会签部门
      signDept: countersign,
    };
  }
}

export default SignthequoteParam;
